"计科1813-27-相红"
import random

n = input("红球3个，黄球3个，绿球6个，一次选8个，请问您想随机选几次:")

def funSel():
    a = random.randint(0, 3)
    b = random.randint(0, 3)
    c = 8 - a -b
    print("红球{0}个，黄球{1}个，绿球{2}个".format(a, b, c))

if int(n) > 0:
    for i in range(0,int(n)):
        print("第{0}次选择 ".format(i+1), end="：")
        funSel()
